// 定义参数需要的类型
import { propertiesType } from "./resultsType";

export interface myPropertiesType extends propertiesType {
    selectedProp: string,
}

// 过滤属性类型
export interface attrType {
    groupName: string,
    propertyName: string,
}

// 过滤参数类型
export interface filterParamsType {
    brandId: string | undefined,
    attrs?: attrType[]
}

// 排序字段类型
export type sortFieldType = 'publishTime' | 'orderNum' | 'evaluateNum' | 'price' | undefined
// 排序方式类型
export type sortMethodType = 'asc' | 'desc' | undefined
// 排序参数类型
export interface sortParamsType {
    inventory: boolean,
    onlyDiscount: boolean,
    sortField: sortFieldType,
    sortMethod: sortMethodType,
}